package com.oig.sys.auth.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;
import java.io.Serializable;


/**
 * @author wuxl
 * 岗位表
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_job")
public class TbJob implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "job_code", length = 32)
	private String jobCode;

	/**
	 */
	@Column(name = "job_name", length = 128)
	private String jobName;

	/**
	 */
	@Column(name = "status")
	private String status;

	/**
	 */
	@Column(name = "tenant_id")
	private Integer tenantId;
	@Column(name = "tenant_code")
	private String tenantCode;
	/**
	 */
	@Column(name = "tenant_name", length = 128)
	private String tenantName;

	/**
	 */
	@Column(name = "depart_id")
	private Integer departId;

	/**
	 */
	@Column(name = "depart_name", length = 128)
	private String departName;

	/**
	 */
	@Column(name = "create_user_id")
	private Integer createUserId;

	/**
	 */
	@Column(name = "create_user_name", length = 32)
	private String createUserName;

	/**
	 */
	@CreatedDate
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	private java.util.Date createTime;

	/**
	 */
	@Column(name = "last_update_id")
	private Integer lastUpdateId;

	/**
	 */
	@Column(name = "last_update_name", length = 32)
	private String lastUpdateName;

	/**
	 */
	@LastModifiedDate
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "last_update_time")
	private java.util.Date lastUpdateTime;

	/**
	 */
	@Version
	@Column(name = "version")
	private Integer version;
}
